# coding=utf-8
from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token

from . import views

urlpatterns = [
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.CheckUsernameView.as_view()),

    url(r'^phones/(?P<mobile>1[345789]\d{9})/count/$',views.CheckMobileView.as_view()),

    url(r'^$',views.RegisterUserView.as_view()),

    url(r'^auths/',obtain_jwt_token),

]